Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat update testing fixtures #88

Merged
merged 70 commits into from
Jul 11, 2023
Merged

Conversation

MOshima-PIFSC
Copy link
Contributor

Changes included in this PR:

  • updated unit tests so they call the simple_small SS3 model from r4ss (system.file("extdata", "simple_small", package = "r4ss")
  • added a copy of the simple_small model input files (starter.ss, forecast.ss, control.ss, and data.ss) to the inst/extdata folder
  • in github action, retrospectives will be run by downloading the ss executable file, running in the test script and then deleting all files after tests are complete

These changes will move us toward being able to remove the large .rda files (simple.rda and retroSimple.rda) in the future. The next step will be during the documentation milestone to update the vignettes to use these structures.

This new workflow should replace the current call-r-cmd-check.yml workflow.

@efletcherPIFSC
Copy link
Collaborator

efletcherPIFSC commented Jul 10, 2023

@MOshima-PIFSC The r package checker found errors in the test code, but it was due to checking if stock synthesis was installed in my system,

r4ss has a test_that method that skips the test if the stock synthesis executable is not on the system: https://github.com/r4ss/r4ss/blob/9d592166e3415f61875a9e19bc0741c0a0c5a5b0/tests/testthat/test-runs.R#L20)

@efletcherPIFSC
Copy link
Collaborator

R-package check with bugfixes resolves #89 issue.

@efletcherPIFSC efletcherPIFSC linked an issue Jul 11, 2023 that may be closed by this pull request
@efletcherPIFSC efletcherPIFSC merged commit 8b79e7e into main Jul 11, 2023
@efletcherPIFSC efletcherPIFSC deleted the FEAT-update-testing-fixtures branch July 11, 2023 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

retrospective checks
2 participants